//package com.zjsystem.zjsy.task;
//
//import com.alibaba.fastjson.JSON;
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.xxl.job.core.biz.model.ReturnT;
//import com.xxl.job.core.handler.annotation.XxlJob;
//import com.zjsystem.zjsy.dto.ZjxdAssignment;
//import com.zjsystem.zjsy.request.AssignmentRequest;
//import com.zjsystem.zjsy.service.ZjxdAssignmentService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * @Author: 王云飞
// * @name: XxlJobTest
// * @Date: 2024/7/11 10:20
// */
//@Component
//@Slf4j
//@EnableScheduling
//public class SendMsgTest {
//
//    @Resource
//    private ZjxdAssignmentService assignmentService;
//
//    @XxlJob("demoJobHandler")
//    public ReturnT<String> demoJobHandler (String s) throws Exception{
//        log.info("定时任务执行");
//        return ReturnT.SUCCESS;
//    }
//
//    @XxlJob("redisAss")
//    public ReturnT<String> redisAss (String s) throws Exception{
//        IPage<ZjxdAssignment> assignment = assignmentService.getAssignment(new AssignmentRequest());
//        log.info("写入缓存：{}", JSON.toJSONString(assignment.getRecords()));
//        return ReturnT.SUCCESS;
//    }
//
//}
